package com.dinzeer.slashblade_project_slr.regsiter;

import com.dinzeer.slashblade_project_slr.Slashblade_project_slr;
import com.dinzeer.slashblade_project_slr.item.ItemSLRSlashBlade;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.Tier;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

import static com.dinzeer.slashblade_project_slr.Slashblade_project_slr.MODID;

public class SLRItemRegsitry {
    public static final DeferredRegister<Item> ITEMS=DeferredRegister.create(ForgeRegistries.ITEMS, MODID);

    private static final Tier CUSTOM_TIER = new Tier() {
        @Override public int getUses() { return 1000; }
        @Override public float getSpeed() { return 8.0f; }
        @Override public float getAttackDamageBonus() { return 5.0f; }
        @Override public int getLevel() { return 3; }
        @Override public int getEnchantmentValue() { return 15; }
        @Override public Ingredient getRepairIngredient() {
            return Ingredient.of(Items.NETHERITE_INGOT);
        }
    };
    public static final RegistryObject<Item> SLR_SLASH_BLADE =
            SLRItemRegsitry.ITEMS.register("slr_slashblade",
                    () -> new ItemSLRSlashBlade(CUSTOM_TIER, new Item.Properties()));
}
